import React, { Component } from 'react'
import {Button} from "antd"

export default class Login extends Component {
  login=()=>{
    localStorage.setItem("token",123)
    this.props.history.replace("/")
    // {
    //   path:"/",
    //   query:{
    //     aa:123
    //   }
    // }
  }
  render() {
    return (
      <div>
        <Button type="primary" onClick={this.login}>登录</Button>
      </div>
    )
  }
}
